<?php
/* @var $this VentaController */
/* @var $model Venta */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'venta-_formComprobante-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// See class documentation of CActiveForm for details on this,
	// you need to use the performAjaxValidation()-method described there.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'tipo_comprobante'); ?>
		<?php echo $form->textField($model,'tipo_comprobante'); ?>
		<?php echo $form->error($model,'tipo_comprobante'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'prefijo_comprobante'); ?>
		<?php echo $form->textField($model,'prefijo_comprobante'); ?>
		<?php echo $form->error($model,'prefijo_comprobante'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'numero_comprobante'); ?>
		<?php echo $form->textField($model,'numero_comprobante'); ?>
		<?php echo $form->error($model,'numero_comprobante'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'neto'); ?>
		<?php echo $form->textField($model,'neto'); ?>
		<?php echo $form->error($model,'neto'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'iva'); ?>
		<?php echo $form->textField($model,'iva'); ?>
		<?php echo $form->error($model,'iva'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'percepcion'); ?>
		<?php echo $form->textField($model,'percepcion'); ?>
		<?php echo $form->error($model,'percepcion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exento'); ?>
		<?php echo $form->textField($model,'exento'); ?>
		<?php echo $form->error($model,'exento'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cliente'); ?>
		<?php echo $form->textField($model,'cliente'); ?>
		<?php echo $form->error($model,'cliente'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'vendedor'); ?>
		<?php echo $form->textField($model,'vendedor'); ?>
		<?php echo $form->error($model,'vendedor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Sucursal'); ?>
		<?php echo $form->textField($model,'Sucursal'); ?>
		<?php echo $form->error($model,'Sucursal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'forma_cobro'); ?>
		<?php echo $form->textField($model,'forma_cobro'); ?>
		<?php echo $form->error($model,'forma_cobro'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distribucion'); ?>
		<?php echo $form->textField($model,'distribucion'); ?>
		<?php echo $form->error($model,'distribucion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'saldado'); ?>
		<?php echo $form->textField($model,'saldado'); ?>
		<?php echo $form->error($model,'saldado'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'anulado'); ?>
		<?php echo $form->textField($model,'anulado'); ?>
		<?php echo $form->error($model,'anulado'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'destinatario'); ?>
		<?php echo $form->textField($model,'destinatario'); ?>
		<?php echo $form->error($model,'destinatario'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dir_facturacion'); ?>
		<?php echo $form->textField($model,'dir_facturacion'); ?>
		<?php echo $form->error($model,'dir_facturacion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'descuento'); ?>
		<?php echo $form->textField($model,'descuento'); ?>
		<?php echo $form->error($model,'descuento'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fecha_anulado'); ?>
		<?php echo $form->textField($model,'fecha_anulado'); ?>
		<?php echo $form->error($model,'fecha_anulado'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->